import request from '@/utils/request'

// 查询告警事件列表
export function listAlarmEvent(query) {
  return request({
    url: '/project/event/list',
    method: 'get',
    params: query
  })
}

// 查询告警事件详细
export function getAlarmEvent(id) {
  return request({
    url: '/project/event/' + id,
    method: 'get'
  })
}

// 处理告警事件（单个处理）
export function handleEvent(data) {
  return request({
    url: '/project/event/handle',
    method: 'post',
    data: data
  })
}

// 批量处理告警事件
export function handleEventBatch(data) {
  return request({
    url: '/project/event/handleBatch',
    method: 'post',
    data: data
  })
}


